<template>
  <div class="ckd-view">
    <h2>出库单</h2>
    <el-form :model="form" label-width="120px">
      <el-form-item label="商品名称">
        <el-input v-model="form.name" placeholder="请输入商品名称"></el-input>
      </el-form-item>
      <el-form-item label="数量">
        <el-input-number v-model="form.quantity" :min="1" placeholder="请输入数量"></el-input-number>
      </el-form-item>
      <el-form-item label="日期">
        <el-date-picker v-model="form.date" type="date" placeholder="选择日期"></el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="submitForm">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'CkdView',
  data() {
    return {
      form: {
        name: '',
        quantity: 1,
        date: null
      }
    };
  },
  methods: {
    submitForm() {
      this.$message.success('出库单提交成功！');
    }
  }
};
</script>

<style scoped>
.ckd-view {
  padding: 20px;
  background: white;
  color: black;
}
</style> 